package com.lxp.eduService;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//springboot启动类
@SpringBootApplication
@EnableDiscoveryClient //nacos注册
@EnableFeignClients
@EnableCaching//redis配置
@ComponentScan(basePackages = {"com.lxp"}) //加入后可以扫描其他模块的包
public class EduApplication {
    public static void main(String[] args) {
        try{
            SpringApplication.run(EduApplication.class,args);

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
